package interfaz;
import java.awt.BorderLayout;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NewJFrame1 extends javax.swing.JFrame {
	private JLabel jLabel1Codigo;
	private JTextField jTextField1Codigo;
	private JLabel jLabel1Nombre;
	private JLabel jLabel1CantidadExistencias;
	private JLabel jLabel1PrecioUnitario;
	private JButton jButton1AgregarProducto;
	private JComboBox jComboBox1CantidadExistencias;
	private JTextField jTextField1PrecioUnitario;
	private JTextField jTextField1Nombre;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				NewJFrame1 inst = new NewJFrame1();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public NewJFrame1() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);}
			getContentPane().setLayout(null);
			{
				jLabel1Codigo = new JLabel();
				getContentPane().add(getJLabel1Codigo());
				jLabel1Codigo.setText("Codigo");
				jLabel1Codigo.setBounds(19, 52, 39, 16);
			}
			{
				jTextField1Codigo = new JTextField();
				getContentPane().add(getJTextField1Codigo());
				jTextField1Codigo.setBounds(291, 52, 128, 23);
			}
			{
				jLabel1Nombre = new JLabel();
				getContentPane().add(getJLabel1Nombre());
				jLabel1Nombre.setText("Nombre");
				jLabel1Nombre.setBounds(19, 89, 44, 16);
			}
			{
				jLabel1CantidadExistencias = new JLabel();
				getContentPane().add(getJLabel1CantidadExistencias());
				jLabel1CantidadExistencias.setText("Cantidad De Existencias");
				jLabel1CantidadExistencias.setBounds(19, 126, 128, 16);
			}
			{
				jLabel1PrecioUnitario = new JLabel();
				getContentPane().add(getJLabel1PrecioUnitario());
				jLabel1PrecioUnitario.setText("Precio Unitario Por Existencia");
				jLabel1PrecioUnitario.setBounds(19, 167, 153, 16);
			}
			{
				jTextField1Nombre = new JTextField();
				getContentPane().add(getJTextField1Nombre());
				jTextField1Nombre.setBounds(291, 94, 128, 23);
			}
			{
				jTextField1PrecioUnitario = new JTextField();
				getContentPane().add(getJTextField1PrecioUnitario());
				jTextField1PrecioUnitario.setBounds(291, 164, 128, 23);
			}
			{
				ComboBoxModel jComboBox1CantidadExistenciasModel = 
					new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
				jComboBox1CantidadExistencias = new JComboBox();
				getContentPane().add(getJComboBox1CantidadExistencias());
				jComboBox1CantidadExistencias.setModel(jComboBox1CantidadExistenciasModel);
				jComboBox1CantidadExistencias.setBounds(291, 130, 128, 23);
			}
			{
				jButton1AgregarProducto = new JButton();
				getContentPane().add(getJButton1AgregarProducto());
				jButton1AgregarProducto.setText("Agregar Producto");
				jButton1AgregarProducto.setBounds(192, 254, 108, 23);
				jButton1AgregarProducto.addActionListener(this);
			}
			pack();
			this.setSize(484, 398);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public JLabel getJLabel1Codigo() {
		return jLabel1Codigo;
	}
	
	public JTextField getJTextField1Codigo() {
		return jTextField1Codigo;
	}
	
	public JLabel getJLabel1Nombre() {
		return jLabel1Nombre;
	}
	
	public JLabel getJLabel1CantidadExistencias() {
		return jLabel1CantidadExistencias;
	}
	
	public JLabel getJLabel1PrecioUnitario() {
		return jLabel1PrecioUnitario;
	}
	
	public JTextField getJTextField1Nombre() {
		return jTextField1Nombre;
	}
	
	public JTextField getJTextField1PrecioUnitario() {
		return jTextField1PrecioUnitario;
	}
	
	public JComboBox getJComboBox1CantidadExistencias() {
		return jComboBox1CantidadExistencias;
	}
	
	public JButton getJButton1AgregarProducto() {
		return jButton1AgregarProducto;
	}

}
